"use strict";
/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.createTable("CameraCompares", {
      id: {
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        type: Sequelize.INTEGER,
      },
      sn: {
        type: Sequelize.STRING,
      },
      beUsed: {
        type: Sequelize.STRING,
      },
      pId: {
        type: Sequelize.STRING,
      },
      long: {
        type: Sequelize.STRING,
      },
      wide: {
        type: Sequelize.STRING,
      },
      height: {
        type: Sequelize.STRING,
      },
      clong: {
        type: Sequelize.STRING,
      },
      cwide: {
        type: Sequelize.STRING,
      },
      cheight: {
        type: Sequelize.STRING,
      },
      difflong: {
        type: Sequelize.STRING,
      },
      diffwide: {
        type: Sequelize.STRING,
      },
      diffheight: {
        type: Sequelize.STRING,
      },
      cX: {
        type: Sequelize.STRING,
      },
      cY: {
        type: Sequelize.STRING,
      },
      cZ: {
        type: Sequelize.STRING,
      },
      cOZ: {
        type: Sequelize.STRING,
      },
      rX: {
        type: Sequelize.STRING,
      },
      rY: {
        type: Sequelize.STRING,
      },
      rZ: {
        type: Sequelize.STRING,
      },
      rEX: {
        type: Sequelize.STRING,
      },
      rEY: {
        type: Sequelize.STRING,
      },
      rEZ: {
        type: Sequelize.STRING,
      },
      timestamp: {
        type: Sequelize.DATE,
      },
      createdAt: {
        allowNull: false,
        type: Sequelize.DATE,
      },
      updatedAt: {
        allowNull: false,
        type: Sequelize.DATE,
      },
    });
  },
  async down(queryInterface, Sequelize) {
    await queryInterface.dropTable("CameraCompares");
  },
};
